#!/bin/bash
dirs=(
#  "data"
  "conf"
  "script"
  "lagoudw"
#  "software"
#  "upload"
)
for param1 in "${dirs[@]}"
do
  file_name=$(basename $param1)
  dir_name=`cd -P $(dirname $param1);pwd`
  target_host=linux121
  target_dir_name=/root/
  rsync -rvl ${dir_name}/${file_name} root@${target_host}:${target_dir_name}
done